//
//  KCTEncryptionTools.h
//  KCTBluetoothSDK
//
//  Created by Qinsz on 2019/12/18.
//  Copyright © 2019年 Qinsz. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface KCTEncryptionTools : NSObject

+(NSData *)RandomDataWithLength:(NSInteger)length;

+(NSData *)XOR_Data:(NSData *)data withKey:(uint8_t)key;

+(nullable NSData *)XOR_Data:(NSData *)data withOtherData:(NSData *)otherData;

+(uint8_t)HashWithData:(NSData *)data;



+(NSData *)AES_EncryptDataWithData:(NSData *)data secretKey:(NSData *)secretKey;

+(NSData *)AES_DecryptDataWithData:(NSData *)data secretKey:(NSData *)secretKey;

@end

NS_ASSUME_NONNULL_END
